import service from "@/utils/service.js";

// 获取用户信息
export const getUserDataApi = (params) => service.get("user/info", { params });

// 注册判断号码是否被注册
export const getRegisterDataApi = (data) => service.post("user/docheckphone", data);

// 注册 发送验证码 
export const getTelNumApi = (data) => service.post("user/dosendmsgcode", data);

// 注册 验证验证码
export const getVerifyCodeApi = (data) => service.post("user/docheckcode", data);

// 设置密码
export const setPasswordApi = (data) => service.post("user/dofinishregister", data);

// 登录
export const loginApi = (data) => service.post("user/login", data);